<?php

namespace app\demo\middleware;

class Detail
{
    public function handle($request, \Closure $next)
    {
        $request->type = "detail";

        return $next($request);
    }


    //结束的调度
    public function end(\think\Response $response)
    {

    }
}